# Tanım: WHATWG HTML5 özelliğine dayalı Python HTML ayrıştırıcısı
# URL: https://github.com/html5lib
# Paketçi: Cihan_Alkan
# Gerekler: python3 python3-setuptools python3-six
# Grup: kütüphane

isim=python3-html5lib
surum=1.0.1
devir=1
kaynak=(https://github.com/html5lib/html5lib-python/archive/${surum}.tar.gz::$isim-$surum.tar.gz)

derle() {
cd "${SRC}"/html5lib-python-${surum}

    rmdir html5lib/tests/testdata
    ln -sfT ../../../html5lib-tests-c305da74fae50fb018870de7a042da36c1a93b65 html5lib/tests/testdata
  python3 setup.py build
  python3 setup.py install -O1 --root="$PKG" --optimize=1 --skip-build
    install -Dm755 LICENSE "${PKG}"/usr/share/licenses/${isim}/LICENSE
}